{% extends "font.xhtml" %}

{% block head %}
		<link rel="alternate" href="/fonts/{{ name }}.atom" type="application/atom+xml" />
{% endblock %}

{% block addons %}{% endblock %}

{% block content %}
		<div style="padding-bottom: 1px; overflow: hidden;">
			<div class="list">
				{% for entity in entities %}
					<div class="container text">
						<a href="/fonts/{{ name }}/history/{{ entity.revision }}">
							{% if entity.summary %}
								{{ entity.summary }}
							{% else %}
								No summary.
							{% endif %}
						</a>
						<div>Revision {{ entity.revision }} / {{ entity.datetime|date:"j M Y \a\t G:i" }} ({{ entity.datetime|timesince }} ago) by {{ entity.author }}</div>
					</div>
				{% endfor %}
			</div>
			<div class="footer spacer">
				{% if prev %}
					<a href="/fonts/{{ name }}/history?offset={{ prev }}">
						<div class="button left right gap">Previous</div>
					</a>
				{% endif %}
				{% if offset %}
					<a href="/fonts/{{ name }}/history?offset={{ offset }}">
						<div class="button left right">Next</div>
					</a>
				{% endif %}
				{% if entities %}
					Subscribe to <a href="/fonts/{{ name }}.atom">Atom feed</a>
				{% endif %}
			</div>
		</div>
{% endblock %}
